import request from '@/utils/request'

// 查询商户服务城市信息列表
export function listServeCity(query) {
  return request({
    url: '/merchant/serveCity/list',
    method: 'get',
    params: query
  })
}

// 查询商户服务城市信息详细
export function getServeCity(id) {
  return request({
    url: '/merchant/serveCity/' + id,
    method: 'get'
  })
}

// 新增商户服务城市信息
export function addServeCity(data) {
  return request({
    url: '/merchant/serveCity',
    method: 'post',
    data: data
  })
}

// 修改商户服务城市信息
export function updateServeCity(data) {
  return request({
    url: '/merchant/serveCity',
    method: 'put',
    data: data
  })
}

// 删除商户服务城市信息
export function delServeCity(id) {
  return request({
    url: '/merchant/serveCity/' + id,
    method: 'delete'
  })
}

export function baseInfoExtData(query) {
  return request({
    url: '/merchant/serveCity/extData',
    method: 'get',
    params: query
  })
}
